<?php
/**
 * User: fu
 * Date: 12-3-20
 * Time: 下午3:46
 */
?>
<?php


$navcat = new Catalog(array('id_str' => 'id', 'pid_str' => 'parent_catalog','cur_id'=>$d,
    'pid'=>$mid,
    'item_fn'=>function($item){
        return sprintf('<a href="%s">%s</a>' ,
            str_replace('@id',$item['id'],$item['list_file']),$item['cat_name']);
    }));
echo $navcat->get($publish->select())
?>
<ul>
    <?php
    foreach ($datar as $val) {
        printf('<li><a href="%s">%s</a></li>',$val['url'],$val['tit']);
    }
    
    ?>   
</ul>
<div>
    <?php
        echo $page->getlink('5','<a href="'.SITEDIR.'/index_%d.html' . '">%d</a>', '_');
    ?>
</div>
